package com.qf.czh.mapper;

import com.qf.czh.model.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;
import java.util.Set;


public interface UserMapper {

    User getUserByUsername(String username);

    Integer getIdByUsername(String username);

    Set<String> getRolesByUsername(String username);

    Set<String> getPermissions(@Param("roles") Set<String> roles);

    List<User> getAllUser(Map<String, Object> params);

    Integer addUser(Map<String, Object> params);

    Integer updateUser(Map<String, Object> params);

    Integer deleteUser(@Param("ids") List<String> list);
}
